/*
 * @Author: zhaoqr
 * @Date: 2024-10-26
 * @LastEditTime: 2024-10-26
 * @LastEditors: zhaoqr zhaoqr@channelsoft.com
 * @Description: 
 * @FilePath: \vue3-template\src\router\index.js
 */
import { createRouter, createWebHistory } from 'vue-router';
import Page1 from '../pages/communication/webrtc/page1.vue';
import Page2 from '../pages/communication/webrtc/page2.vue';

const routes = [
  {
    path: '/',
    redirect:"/page1"
  },
  {
    path: "/page1",
    component: Page1,
  },
  {
    path: '/page2',
    name: 'Page2',
    component: Page2,
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;